<!-- #section:basics/navbar.layout -->
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
<script type="text/javascript">
    try{ace.settings.check('navbar' , 'fixed')}catch(e){}
</script>

<div class="navbar-container" id="navbar-container">
<!-- #section:basics/sidebar.mobile.toggle -->
<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
    <span class="sr-only">Toggle sidebar</span>

    <span class="icon-bar"></span>

    <span class="icon-bar"></span>

    <span class="icon-bar"></span>
</button>

<!-- /section:basics/sidebar.mobile.toggle -->
<div class="navbar-header pull-left">
    <!-- #section:basics/navbar.layout.brand -->
    <a href="#" class="navbar-brand">
        <small>
            <i class="fa fa-leaf"></i>
            SF管理系统
        </small>
    </a>

    <!-- /section:basics/navbar.layout.brand -->

    <!-- #section:basics/navbar.toggle -->

    <!-- /section:basics/navbar.toggle -->
</div>

<!-- #section:basics/navbar.dropdown -->
<div class="navbar-buttons navbar-header pull-right" role="navigation">
<ul class="nav ace-nav">
    {{if $task}}
    <li class="grey">
        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
            <i class="ace-icon fa fa-tasks"></i>
            <span class="badge badge-grey">{{$task.total}}</span>
        </a>

        <ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
            <!--<li class="dropdown-header">-->
                <!--<i class="ace-icon fa fa-check"></i>-->
                <!--{{$task.total}}个待实名认证用户-->
            <!--</li>-->

            <li class="dropdown-content">
                <ul class="dropdown-menu dropdown-navbar">
                    {{foreach from=$task.data item=user}}
                    <li>
                        <a href="#page/autouser/edit/{{$user.userId}}">
                            <div class="clearfix">
                                <img src="{{$user.userAvatar}}" style="width:30px;" />
                                <span class="pull-right" style="line-height:33px">{{$user.userName}}</span>
                            </div>
                        </a>
                    </li>
                    {{/foreach}}
                </ul>
            </li>

            <li class="dropdown-footer">
                <a href="#page/autouser/index">
                    查看所有待实名认证用户
                    <i class="ace-icon fa fa-arrow-right"></i>
                </a>
            </li>
        </ul>
    </li>
    {{/if}}

<!-- #section:basics/navbar.user_menu -->
<li class="light-blue">
    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
        <img class="nav-user-photo" src="{{$contextPath}}/{{$admin.userAvatar}}" />
								<span class="user-info">
									<small>欢迎您,</small>
									{{if $admin.userName}}{{$admin.userName}}{{else}}{{$admin.loginName}}{{/if}}
								</span>

        <i class="ace-icon fa fa-caret-down"></i>
    </a>

    <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
        <li>
            <a href="index#page/user/show/{{$admin.userId}}">
                <i class="ace-icon fa fa-user"></i>
                个人资料
            </a>
        </li>

        <li class="divider"></li>

        <li>
            <a href="{{$contextPath}}/admin/logout" target="_top">
                <i class="ace-icon fa fa-power-off"></i>
                退出
            </a>
        </li>
    </ul>
</li>

<!-- /section:basics/navbar.user_menu -->
</ul>
</div>

<!-- /section:basics/navbar.dropdown -->
</div><!-- /.navbar-container -->
</div>

<!-- /section:basics/navbar.layout -->